package org.jeecg.modules.demo.checkemployee.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.jeecg.modules.demo.applyapartemployee.entity.ZnzfApplyApartEmployee;
import org.jeecg.modules.demo.base.entity.ZnzfScoreStandardItem;
import org.jeecg.modules.demo.checkemployee.entity.ZnzfCheckEmployee;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.roomapartdistribute.entity.ZnzfCheckApart;

import java.util.List;

/**
 * @Description: 核定单位报名人员
 * @Author: jeecg-boot
 * @Date:   2022-03-21
 * @Version: V1.0
 */
public interface IZnzfCheckEmployeeService extends IService<ZnzfCheckEmployee> {

    List<ZnzfCheckEmployee> findEmployListByApartId(String id);

    List<ZnzfCheckEmployee> findCheckedEmployListByCheckApartId(String id);

    List<ZnzfCheckEmployee> findCheckedEmployListByCheckApartIdAndNum(String id, int num);

    List<ZnzfCheckEmployee> findCheckedEmployListByApartId(String id);

    List<ZnzfScoreStandardItem> queryScoreDetailsById(String id);

    JSONArray getByRadId(String radId);

    List<ZnzfCheckEmployee> getByCheckApartId(String caId);

    List<ZnzfCheckEmployee> findCheckedEmployListByApartIdAndName(String apartId, String name);

    String findTelByUserId(String userId);

    /**
     * 根据用户id查找对应的部门
     * @param uid
     * @return
     */
    ZnzfCheckApart findApartByUserId(String uid);
}
